package de.unibi.mmi.homeauto.team1.constants;

public class BEDROOM {
	public static final int SMOKE_ID = 40;
	public static final int WINDOW_ID = 41;
	public static final int DOOR_ID = 42;
	public static final int CURRENT_ROOM_TEMP_ID = 43;
	public static final int HEATING_ID = 44;
	public static final int SET_ROOM_TEMP_ID = 45;
	public static final int LAMP_1_ID = 46;
	public static final int LAMP_2_ID = 47;

	public static final int[] IDS = { BEDROOM.SMOKE_ID, BEDROOM.WINDOW_ID,
			BEDROOM.DOOR_ID, BEDROOM.CURRENT_ROOM_TEMP_ID, BEDROOM.HEATING_ID,
			BEDROOM.SET_ROOM_TEMP_ID, BEDROOM.LAMP_1_ID, BEDROOM.LAMP_2_ID };

	private static final float[] values = new float[8];

	public static final void setValue(int id, float value) {
		values[id - 40] = value;
	}

	public static final float getValue(int id) {
		return id >= 40 && id <= 47 ? values[id - 40] : -1;
	}
}
